package com.zhaowb.springcloud.admin;

import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import tk.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;


/**
 * Created with IDEA
 * MapperScan 必须是tk.mybatis.spring.annotation.MapperScan; 否则出错
 *
 * @author zhaowb
 * @date 2018/11/1 10:17
 */
@EnableEurekaClient
@SpringBootApplication
@EnableDiscoveryClient
@EnableHystrix
@ServletComponentScan("com.zhaowb.springcloud.admin.config.druid")
@MapperScan(basePackages = "com.zhaowb.springcloud.admin.mapper")
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }
}
